class SessionsController < Devise::SessionsController

  protected
  def after_sign_in_path_for(resource_or_scope)
    if current_user.meitihuali?
      admins_meitis_path
    else
      admins_news_index_path
    end
  end

  def after_sign_out_path_for(resource_or_scope)
    new_user_session_path
  end
end